<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">	
			<li><a href="{:U('AdminOrder/ship_list')}">发货单列表</a></li>
			<li class="active"><a href="#">查看发货单</a></li>
	    </ul>
		<div class="order-box">
			<form class="js-ajax-form" action="" method="post">
			<h4 class="well">基本信息</h4>
			<table style="width:100%;" border="0" cellspacing="1" cellpadding="6">
				<tr>
					<th align="right" width=300>订单号：</th>
					<td>{$order.order_sn}</td>
					<th align="right" width=300>下单时间：</th>
					<td>{$order.add_time|date='Y-m-d H:i:s',###}</td>
				</tr>
				<tr>
					<th align="right" width=300>收货人：</th>
					<td>{$order.consignee}</td>
					<th align="right" width=300>联系电话：</th>
					<td>{$order.mobile}</td>
				</tr>
				<tr>
					<th align="right" width=300>收货地址：</th>
					<td colspan=3>{$order.detail_address}</td>					
				</tr>
				<tr>
					<th align="right" width=300>配送物流：</th>
					<td colspan=3>{$order.shipping_name} （{$shipping_status[$order[shipping_status]]}）</td>
				</tr>
				<tr>
					<th align="right" width=300>快递单号：</th>
					<td colspan=3>{$order.delivery_no} <a href="">查看物流</a></td>
				</tr>
				<tr>
					<th align="right" width=300>发货时间：</th>
					<td colspan=3>{$order.shipping_time|date='Y-m-d H:i:s',###}</td>
				</tr>
			</table>
			
			<h4 class="well">商品信息</h4>
			<table style="width:100%;" border="0" cellspacing="1" cellpadding="6">
				<tr>
					<th>商品名称</th>
					<th>商品规格</th>
					<th>数量</th>
					<th>商品单价</th>
					<th>商品小计</th>
				</tr>
				<foreach name="goods_order" item="vo">
				<tr>
					<td align="center">{$vo.goods_name}</td>
					<td width="250" align="center">{$vo.spec_item_name}</td>
					<td width="200" align="center">{$vo.goods_num}</td>
					<td width="200" align="center">¥{$vo.member_goods_price}</td>
					<td width="200" align="center">¥{$vo.goods_total}</td>
				</tr>
				</foreach>
				<tr>
					<td colspan=5 align="right" style="padding-right:50px;">合计：¥{$order.goods_price}</td>
				</tr>
			</table>
			<h4 class="well">费用信息</h4>
			<table style="width:100%;" border="0" cellspacing="1" cellpadding="6">
				<tr>
					<td align="center">总计：¥{$order.goods_price}</td>					
				</tr>
				<tr>
					<td align="center">运费：¥{$order.shipping_price}</td>
				</tr>
				<tr>
					<td align="center">应付：¥{$order.order_amount}</td>
				</tr>
			</table>
			<h4 class="well">操作</h4>
			
			<table style="width:100%;" border="0" cellspacing="1" cellpadding="6">
				<tr>
					<th align="right" width="200">操作备注：</th>
					<td>
						<textarea name="note" id="" style="width:500px;height:50px;"></textarea>
					</td>
				</tr>
				<tr>
					<th align="right" width="200">当前可执行操作：</th>
					<td>						
						<foreach name="order_btn" item="v" key="k">
							<if condition="$k eq 'void'">
								<span style="color:red;">{$v}</span>
							<elseif condition="$k eq 'ship'" />
								<a class="btn btn-primary" href="{:U('AdminOrder/ship_info',array('order_id'=>$order['order_id']))}" style="margin-right:10px;">{$v}</a>
							<else />
								<button type="submit" class="btn btn-primary js-ajax-submit" data-action="{:U('AdminOrder/orderOperate',array('order_id'=>$order['order_id'],'type'=>$k))}" style="margin-right:10px;">{$v}</button>
							</if>
						</foreach>
								<button type="button" class="btn" onclick="history.back(-1)">返回</button>
					</td>
				</tr>
			</table>
			
			<h4 class="well">操作记录</h4>
			<table style="width:100%;" border="0" cellspacing="1" cellpadding="6">
				<tr>
					<th>操作人</th>
					<th>操作时间</th>
					<th>订单状态</th>
					<th>操作备注</th>
				</tr>
				<foreach name="action_log" item="vo">
				<tr>
					<td align="center">{$vo.action_user}</td>
					<td align="center">{$vo.log_time|date="Y-m-d H:i:s",###}</td>
					<td align="center">{$order_status[$vo['order_status']]} / {$pay_status[$vo['pay_status']]} / {$shipping_status[$vo['shipping_status']]}</td>
					<td align="center">{$vo.action_note}</td>
				</tr>
				</foreach>
			</table>
		</form>			
		</div>
	</div>
	<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
</body>
</html>